package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

@Getter
public class JSONResult {
    private boolean success = true;
    private String msg; //错误信息
    //返回给客户端的数据
    @Setter
    private Object obj;

    //标记错误信息
    public JSONResult mark(String msg) {
        this.msg = msg;
        success = false;
        return this;
    }
}
